#include<reg52.h>
sbit BUZZER=P2^2;
void Delay()
{
unsigned char i,j;
for(i=0;i<255;i++)
for(j=0;j<255;j++);
}
void main()
{
while(1)
{
BUZZER=0;
Delay();
BUZZER=1;
Delay();
}
}
